package gui;

import java.awt.BorderLayout;
import java.awt.FlowLayout;

import javax.swing.JButton;
import javax.swing.JDialog;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import javax.swing.JLabel;
import java.awt.GridLayout;
import java.awt.Font;
import javax.swing.JTextField;
import javax.swing.UIManager;
import javax.swing.JPasswordField;

public class VRegistro extends JDialog {
	private JTextField tfUser;
	private JPasswordField pfPassword;
	private JTextField tfEmail;
	private JTextField ftNombre;
	private JTextField ftApellidos;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		try {
			UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
		} catch (Throwable e) {
			e.printStackTrace();
		}
		try {
			VRegistro dialog = new VRegistro();
			dialog.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
			dialog.setVisible(true);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	/**
	 * Create the dialog.
	 */
	public VRegistro() {
		setResizable(false);
		setBounds(100, 100, 450, 300);
		getContentPane().setLayout(null);
		{
			JPanel buttonPane = new JPanel();
			buttonPane.setBounds(151, 218, 153, 33);
			buttonPane.setLayout(new FlowLayout(FlowLayout.RIGHT));
			getContentPane().add(buttonPane);
			{
				JButton okButton = new JButton("Enviar");
				okButton.addActionListener(new ActionListener() {
					public void actionPerformed(ActionEvent arg0) {
					}
				});
				okButton.setActionCommand("OK");
				buttonPane.add(okButton);
				getRootPane().setDefaultButton(okButton);
			}
			{
				JButton cancelButton = new JButton("Cancelar");
				cancelButton.addActionListener(new ActionListener() {
					public void actionPerformed(ActionEvent arg0) {
						dispose();
					}
				});
				cancelButton.setActionCommand("Cancel");
				buttonPane.add(cancelButton);
			}
		}
		{
			JLabel lblRegistro = new JLabel("REGISTRO");
			lblRegistro.setFont(new Font("Tahoma", Font.PLAIN, 18));
			lblRegistro.setBounds(175, 17, 85, 22);
			getContentPane().add(lblRegistro);
		}
		
		JLabel lblNewLabel = new JLabel("Nombre de Usuario");
		lblNewLabel.setBounds(113, 65, 91, 14);
		getContentPane().add(lblNewLabel);
		
		tfUser = new JTextField();
		tfUser.setBounds(229, 62, 86, 20);
		getContentPane().add(tfUser);
		tfUser.setColumns(10);
		
		JLabel lblNewLabel_1 = new JLabel("Contrase\u00F1a");
		lblNewLabel_1.setBounds(148, 90, 56, 14);
		getContentPane().add(lblNewLabel_1);
		
		pfPassword = new JPasswordField();
		pfPassword.setBounds(229, 87, 86, 20);
		getContentPane().add(pfPassword);
		pfPassword.setColumns(10);
		{
			JLabel lblEmail = new JLabel("E-mail");
			lblEmail.setBounds(176, 115, 28, 14);
			getContentPane().add(lblEmail);
		}
		{
			JLabel lblNombre = new JLabel("Nombre");
			lblNombre.setBounds(167, 140, 37, 14);
			getContentPane().add(lblNombre);
		}
		{
			JLabel lblApellidos = new JLabel("Apellidos");
			lblApellidos.setBounds(162, 165, 42, 14);
			getContentPane().add(lblApellidos);
		}
		{
			tfEmail = new JTextField();
			tfEmail.setBounds(229, 112, 86, 20);
			getContentPane().add(tfEmail);
			tfEmail.setColumns(10);
		}
		{
			ftNombre = new JTextField();
			ftNombre.setBounds(229, 137, 86, 20);
			getContentPane().add(ftNombre);
			ftNombre.setColumns(10);
		}
		{
			ftApellidos = new JTextField();
			ftApellidos.setBounds(229, 162, 86, 20);
			getContentPane().add(ftApellidos);
			ftApellidos.setColumns(10);
		}
	}
}
